package com.zhaoxi.project.md.service.impl;

import java.util.List;

import com.zhaoxi.project.md.domain.AnyEntity;
import com.zhaoxi.project.md.mapper.MdReportMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 测试Service业务层处理
 *
 * @author zhaoxi
 * @date 2023-07-20
 */
@Service
public class MdReportServiceImpl {
    @Autowired
    private MdReportMapper mdReportMapper;

    public List<AnyEntity> getReportList(AnyEntity anyEntity) {

        if (anyEntity.getReport_name().equals("salesCrmLeadCount")){
            return mdReportMapper.salesCrmLeadCount(anyEntity);
        } else if (anyEntity.getReport_name().equals("12")){
            return mdReportMapper.salesCrmLeadCount(anyEntity);
        }else{
            return null;
        }
    }

}
